home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pctchnqs
/
1990
/
number2
/
43lines.asm
< prev
next >
Wrap
Assembly Source File
|
1990-04-11
|
749b
|
31 lines
; Code to put VGA into EGA emulation mode.
; (EGA mode remains in effect until explicitly changed.)
MOV AX,3 ; reset video mode 3...
INT 10H
MOV AX,1201H ; ...and set 640 x 350 scan
MOV BX,0030H
INT 10H
; Code to select small font.
; This gives 43 lines in EGA mode, 50 lines in normal VGA mode.
MOV AX,3 ; reset video mode 3...
INT 10H
MOV AX,1112H ; ...and switch to small font
MOV BL,0
INT 10H
; To get back to 25 lines, just set same video mode again.
MOV AX,3 ; reset video mode 3
INT 10H
; Code to put the VGA back into its native video mode.
MOV AX,3 ; reset video mode 3...
INT 10H
MOV AX,1202H ; ...and set 640 x 480 scan
MOV BX,0030H
INT 10H